package adke.gui.panels;

import adke.Util;
import adke.gui.Consistency;
import adke.managers.NameManager;
import info.clearthought.layout.TableLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

// we maken hier aparte klassen voor zodat we ze later nog mooier kunnen
// maken met eye candy ofzo

public class NamePanel extends MarginPanel
{
    public NamePanel(String playerName)
    {
        JLabel label = new JLabel(playerName);
        label.setFont(Consistency.getFont());
        label.setHorizontalAlignment(JLabel.CENTER);
        
        // de marginpanel doet de rest
        add(label);
        
        setMargins(10, 0);
    }
}
